Compiling v2-diagrams

??=[compiling]

In order to make it possible to use the new compilation features even on documents written with -pic v2, the following command has been added:
\begin{defs1}
\vert\ltxdiagram@{\xycompileto{ ...
which is like the ordinary diagram command except the result is compiled into a file <name>|.xyc|. Note that compilation is not quite safe in all cases!

( @1#2 @@diagram@@@@@#1#2 )

There is also the following command that switches on "automatic compilation" of all diagrams created with the v2 |@@diagram@@@@| ... || command:
\begin{defs1}
\vert\CompileAllDiagrams\vert \vert{\vert <prefix> \vert}\vert \cr
\end{defs1}
will apply ||<prefix>n||...|| to each diagram with n a sequence number starting from 1.

( @count@

@@

@#1@@diagram@@@@@@@ @=@ @Second \CompileAllDiagrams ignored )

If for some reason a diagram does not work when compiled then replace the |@@diagram@@@@| command with |@@| (or in case you are using the LATEX form, ||), or use
\begin{defs1}
\vert\NoCompileAllDiagrams\vert \cr
\vert\ReCompileAllDiagrams\vert \cr
\end{defs1}
where the last switches compilation back on.

( @@@#1@@diagram@@@@@@#1

@@@diagram@@@@@@=@

@ )

2